<style>
    .form-group{
        margin-bottom: 20px;
    }

</style>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="hotelname" class="control-label col-xs-12 col-sm-2">{:__('hotelname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="hotelname" data-rule="required" class="form-control" name="row[hotelname]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择城市:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="h_areaide" data-rule="required" class="form-control" name="row[h_areaid]" >
                <option value="">请选择</option>
                {foreach name="city" item="vo"}
                <option value="{$vo.areaId}">{$vo.areaName}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group" id="shiid" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">选择市级:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="h_areadid" data-rule="required" class="form-control" name="row[h_areadid]" >
                <option value="" pid="0">请选择</option>
                {foreach name="citylist" item="vo"}
                <option pid="{$vo.parentId}" value="{$vo.areaId}">{$vo.areaName}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">关联套餐:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-type"  class="form-control selectpicker" name="row[reactids][]" multiple >
                {foreach name="hlist" item="vo"}
                <option value="{$vo.id}">{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标签:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">

                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="label[]" checked value="0"> 需提前预约
                </label>
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="label[]" checked value="1"> 不可退款
                </label>
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="label[]" checked value="2"> 无需换票
                </label>

            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="price" data-rule="required" class="form-control" name="row[price]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="preprice" class="control-label col-xs-12 col-sm-2">{:__('preprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="preprice" data-rule="required" class="form-control" name="row[preprice]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="sell" class="control-label col-xs-12 col-sm-2">{:__('sell')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="sell" data-rule="required" class="form-control" name="row[sell]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2">{:__('stock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="stock" data-rule="required" class="form-control" name="row[stock]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="phone" class="control-label col-xs-12 col-sm-2">{:__('phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="phone" data-rule="required" class="form-control" name="row[phone]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="enddate" class="control-label col-xs-12 col-sm-2">{:__('enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="datetime" class="form-control datetimepicker"  data-rule="required" name="row[enddate]" value="" placeholder="" id="enddate" data-date-format="YYYY-MM-DD" />
        </div>
    </div>
   <!-- <div class="form-group">
        <label for="starttime" class="control-label col-xs-12 col-sm-2">{:__('starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="datetime" class="form-control datetimepicker"  data-rule="required" name="row[starttime]" value="" placeholder="" id="starttime" data-date-format="HH:mm" />
        </div>
    </div>
    <div class="form-group">
        <label for="endtime" class="control-label col-xs-12 col-sm-2">{:__('endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="datetime" class="form-control datetimepicker"  data-rule="required" name="row[endtime]" value="" placeholder="" id="endtime" data-date-format="HH:mm" />
        </div>
    </div>-->

    <div class="form-group">
        <label for="address" class="control-label col-xs-12 col-sm-2">{:__('address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  data-rule="required"  name="row[address]" id="address" placeholder="请输入地址">
        </div>
    </div>

    <div class="form-group">
        <label for="lng" class="control-label col-xs-12 col-sm-2">经度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  data-rule="required" name="row[lng]" id="lng" placeholder="经度">
        </div>
    </div>


    <div class="form-group">
        <label for="lat" class="control-label col-xs-12 col-sm-2">纬度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" data-rule="required"  name="row[lat]" id="lat" placeholder="纬度">
        </div>
    </div>

    <button style="margin-left: 17%;margin-bottom: 25px" type="button" class="btn btn-primary" data-toggle='addresspicker' data-input-id="address" data-lng-id="lng" data-lat-id="lat">点击选择地址获取经纬度</button>







    <div class="form-group">
        <label for="c-thumb" class="control-label col-xs-12 col-sm-2">{:__('imgs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb" class="form-control"  data-rule="required" name="row[imgs]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-imagethumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/webp" data-multiple="true" data-preview-id="p-thumb"><i class="fa fa-upload"></i>上传</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
        </div>
    </div>

    <!--<div class="form-group">
        <label for="c-thumb2" class="control-label col-xs-12 col-sm-2">{:__('detailimgs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb2" class="form-control"  data-rule="required" name="row[detailimgs]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-imagethumb2" class="btn btn-danger plupload" data-input-id="c-thumb2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/webp" data-multiple="true" data-preview-id="p-thumb2"><i class="fa fa-upload"></i>上传</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-thumb2"></ul>
        </div>
    </div>-->

    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">套餐详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[content]" class="form-control" id="content" cols="30" style="width:100%;" rows="10" class="form-control"  ></textarea>
        </div>
    </div>


    <div class="form-group">
        <label for="contentimg" class="control-label col-xs-12 col-sm-2">图文介绍:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[contentimg]" class="form-control editor" id="contentimg" cols="30" style="width:100%;" rows="15" class="form-control"  ></textarea>
        </div>
    </div>


    <div class="form-group">
        <label for="read" class="control-label col-xs-12 col-sm-2">购买须知:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[read]" class="form-control" id="read" cols="30" style="width:100%;" rows="10" class="form-control"  ></textarea>
        </div>
    </div>



    <div class="form-group" style="margin-top: 15px">
        <label class="control-label col-xs-12 col-sm-2">{:__('hot')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[hot]', ['0'=>__('hot0'), '1'=>__('hot1')])}
        </div>
    </div>



    <div class="form-group" style="margin-top: 15px">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


